package com.cskaoyan.service;

import com.cskaoyan.anno.SayHello;
import com.cskaoyan.bean.User;
import org.springframework.stereotype.Service;

/**
 * @author stone
 * @date 2022/03/22 10:57
 */
@Service
public class UserServiceImpl implements UserService{
    @Override
    public void eat() {
        System.out.println("干饭啦");
    }

    @SayHello
    @Override
    public String sleep() {
        System.out.println("上课睡不着");
        int i = 1 / 0;
        return "松哥不需要睡觉";
    }

    @Override
    public User study() {
        return null;
    }

    @Override
    public User study(String name) {
        return null;
    }
}
